﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StatePattern
{
    class Client
    {
        //定义环境角色
        static Context context = new Context();
        static void Main(string[] args)
        {
            
            //初始化状态
            context.State = new ConcreteState1();
            //行为执行
            context.Handle1();
            context.Handle2();
        }
    }
}
